package com.edfu.core.identitymgt.persistence.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.edfu.core.dyna.persistence.entity.DataEntity;

@Entity
@Table(name="userenroldata")
public class UserEnrollmentDataEntity extends DataEntity implements IIdentityMgtEntity {
	private UserEnrollmentEntity userEnrollment;
	
	@OneToOne
	@JoinColumn(name = "userenrollment_id")
	public UserEnrollmentEntity getUserEnrollment() {
		return userEnrollment;
	}

	public void setUserEnrollment(UserEnrollmentEntity userEnrollment) {
		this.userEnrollment = userEnrollment;
	}
	
}
